package ooday02;

public class OverRideDemo {
    public static void main(String[] args) {
        Student zg = new Student("张光", 25, "China", "jsd2408", "001");
        zg.sayhello();//调用student重写之后的

        Teacher ll = new Teacher("李林", 28, "学校", "8000");
        ll.sayhello();//调用teacher重写之后的

        Doctor zw = new Doctor("张伟", 35, "医院", "医生");
        zw.sayhello();//调用person中的


    }


}
